package model

import "go.mongodb.org/mongo-driver/bson/primitive"

// OfflineWsMessage represents a WebSocket message stored for an offline user.
type OfflineWsMessage struct {
	ID        primitive.ObjectID `bson:"_id,omitempty"`
	UserID    uint               `bson:"user_id"`
	Message   []byte             `bson:"message"`
	Timestamp int64              `bson:"timestamp"`
}

// WsMessage represents a message sent over WebSocket.
type WsMessage struct {
	Type    string      `json:"type"`    // Message type, e.g., "bind_result", "unbind_result", "notification"
	Payload interface{} `json:"payload"` // Message payload
	Success bool        `json:"success"` // Indicates if the operation was successful
}
